﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<HomeService.Models.ServiceRequestBasicInfo>" %>

<asp:Content ContentPlaceHolderID="TitleContent" runat="server">
	Täytä huoltopyynnön perustiedot
</asp:Content>

<asp:Content ContentPlaceHolderID="MainContent" runat="server">

	<p><strong>1. Täytä perustiedot</strong> → 2. Liitä valokuvia → 3. Vahvista</p>

    <h2>Täytä huoltopyynnön perustiedot</h2>

	<% Html.EnableClientValidation(); %>
	<% using (Html.BeginForm("AddBasicInfoAndContinue", "ServiceRequest")) { %>

		<div>
			<%: Html.ImprovedLabelFor(x => x.Name) %>
			<%: Html.EditorFor(x => x.Name) %>
			<%: Html.ValidationMessageFor(x => x.Name) %>
		</div>
		
		<div>
			<%: Html.ImprovedLabelFor(x => x.StreetAddress) %>
			<%: Html.EditorFor(x => x.StreetAddress) %>
			<%: Html.ValidationMessageFor(x => x.StreetAddress) %>
		</div>
		
		<div>
			<%: Html.ImprovedLabelFor(x => x.PostalCode) %>
			<%: Html.EditorFor(x => x.PostalCode) %>
			<%: Html.ValidationMessageFor(x => x.PostalCode) %>
		</div>
		
		<div>
			<%: Html.ImprovedLabelFor(x => x.City) %>
			<%: Html.EditorFor(x => x.City) %>
			<%: Html.ValidationMessageFor(x => x.City) %>
		</div>
		
		<div id="phone">
			<%: Html.ImprovedLabelFor(x => x.Phone) %>
			<%: Html.EditorFor(x => x.Phone) %>
			<%: Html.ValidationMessageFor(x => x.Phone) %>
		</div>
		
		<div id="email">
			<%: Html.ImprovedLabelFor(x => x.Email) %>
			<%: Html.EditorFor(x => x.Email) %>
			<%: Html.ValidationMessageFor(x => x.Email) %>
		</div>

		<div>
			<%: Html.ImprovedLabelFor(x => x.Description) %>
			<div>
				<%: Html.EditorFor(x => x.Description) %>
				<div><%: Html.ValidationMessageFor(x => x.Description) %></div>
			</div>
		</div>

		<p class="minor">Emme luovuta tietojasi kolmannelle osapuolelle.</p>

		<div id="actions">
			<input type="submit" value="Jatka" />
		</div>
	<% } %>

	<%: Html.Script("~/Content/Scripts/AddBasicInfo.js") %>

</asp:Content>
